<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%-- 页头 --%>
    <%@include file="common/head.jsp" %>
</head>
<body>
<div class="wrapper">

    <%-- 导航 --%>
    <%@include file="common/header.jsp" %>

    <%-- 侧边栏 --%>
    <%@include file="common/sidebar.jsp" %>

    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="row justify-content-md-center">
                            <div class="col-md-6">
                                <c:if test="${!empty message}">
                                    <div class="alert alert-danger">
                                        <strong>系统提示：</strong> ${message}
                                    </div>
                                </c:if>
                                <div class="card">
                                    <div class="card-header">
                                        <h4 class="card-title">用户登录</h4>
                                    </div>
                                    <form action="/login" method="post">
                                        <div class="card-body">
                                            <div class="form-group">
                                                <label>登录邮箱</label>
                                                <input type="email" name="userEmail" value="${userEmail}"
                                                       required class="form-control input-square"
                                                       placeholder="Enter Email">
                                                <small class="form-text text-muted">提示：请输入<strong
                                                        class="text-warning">邮箱</strong>，不是用户名
                                                </small>
                                            </div>
                                            <div class="form-group">
                                                <label>登录密码</label>
                                                <input type="password" name="userPassword"
                                                       value="${userPassword}" required
                                                       class="form-control input-square" placeholder="Password">
                                            </div>
                                        </div>
                                        <div class="card-action" style="padding: 25px;">
                                            <button type="submit" class="btn btn-success btn-block">登 录
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <%-- 页脚 --%>
    <%@include file="common/footer.jsp" %>

</div>

</body>

<%-- js --%>
<%@include file="common/script.jsp" %>
</html>